package com.demo2do.fms.admin.service.supplier;

import java.util.List;

import com.demo2do.core.entity.page.Page;
import com.demo2do.fms.admin.entity.security.Login;
import com.demo2do.fms.admin.service.DataService;
import com.demo2do.fms.entity.appraisal.AppraisalTemplate;
import com.demo2do.fms.entity.appraisal.AppraisalTemplateItem;

/**
 *
 * @author Ark
 *
 */
public interface AppraisalTemplateItemService extends DataService<AppraisalTemplateItem> {

    /**
     * @param appraisalTemplate
     * @return
     */
    public int count(AppraisalTemplate appraisalTemplate);
    
    /**
     * @param appraisalTemplate
     * @param page
     * @return
     */
    public List<AppraisalTemplateItem> list(AppraisalTemplate appraisalTemplate, Page page);
    
    /**
     * @param item
     * @param template
     * @param login
     */
    public void create(AppraisalTemplateItem item, AppraisalTemplate template, Login login);
    
    /**
     * @param oldItem
     * @param changeItem
     * @param template
     * @param login
     */
    public void edit(AppraisalTemplateItem oldItem, AppraisalTemplateItem changeItem, AppraisalTemplate template, Login login);
    
    /**
     * @param item
     * @param operator
     */
    public void delete(AppraisalTemplateItem item, Long operator);
    
}
